package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SCopyFindPlayer extends Object implements IMessageBase
    {
        public var name:String;
        public var level:int;
        public var warfare:int;
        public var career:int;
        public var orderType:ECopyOrderType;
        public var startIndex:int;
        public const _type:int = 20420;
        public static var _regist:SCopyFindPlayer = new SCopyFindPlayer(true);

        public function SCopyFindPlayer(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SCopyFindPlayer();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.name);
            param1.writeInt(this.level);
            param1.writeInt(this.warfare);
            param1.writeInt(this.career);
            this.orderType.__write(param1);
            param1.writeInt(this.startIndex);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.name = param1.readString();
            this.level = param1.readInt();
            this.warfare = param1.readInt();
            this.career = param1.readInt();
            this.orderType = ECopyOrderType.__read(param1);
            this.startIndex = param1.readInt();
            
        }

    }
}
